package com.xtedu.examproject.entity;

import java.io.Serializable;

public class Teacher implements Serializable {
    private int id;
    private String name;
    private String phone;
    private boolean state;
    private String type;
    private String typeName; // 角色名称

    public Teacher(int id, String name, String phone, boolean state,String type) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.state = state;
        this.setType(type);
    }

    public Teacher(){}


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", state=" + state + '\'' +
                ", type='" + type +
                '}';
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
}
